package ch.il07.utils;

import java.util.Locale;
import java.util.MissingResourceException;
import java.util.ResourceBundle;

/**
 * 
 * @author Reto Hablützel
 * 
 * @desc reading properties made easy ;)
 * 
 */
public class ConverterProperties {

	private static ResourceBundle rb = ResourceBundle.getBundle(
			"ch.il07.converter", Locale.ROOT);

	/**
	 * 
	 * @param key
	 * 
	 * @return the property. null if no such property
	 */
	public static String getProperty(String key) {
		try {
			return rb.getString(key);
		} catch (MissingResourceException e) {
			return null;
		}
	}
}
